///////////////////////////////////////////////////////////////////////////////
// Name:        bombs.h
// Purpose:     Bombs game
// Author:      P. Foggia 1996
// Modified by: Wlodzimierz Skiba (ABX) since 2003
// Created:     1996
// RCS-ID:      $Id: bombs.h,v 1.8 2006/09/05 20:44:26 VZ Exp $
// Copyright:   (c) 1996 P. Foggia
// Licence:     wxWindows licence
///////////////////////////////////////////////////////////////////////////////

#pragma once

//#include "game.h"
#include <wx/dnd.h>

class BombsFrame;
class CFileDrogTarget;

//////////////////////////////////////////////////////////////////////////
/*
 * Class representing the entire Application
 */
class BombsApp: public wxApp
{
public:
    virtual bool OnInit();

private :
    BombsFrame *m_frame;


};

DECLARE_APP(BombsApp)

class BombsCanvas;

void    HandlePicture(const wxString& strFilePathName);

class BombsFrame : public wxFrame
{
  DECLARE_EVENT_TABLE()
public:

    BombsFrame();
    virtual ~BombsFrame();

protected:
    void OnExit(wxCommandEvent& WXUNUSED(event));
    void OnOpen(wxCommandEvent& WXUNUSED(event));
    void OnSave(wxCommandEvent& WXUNUSED(event));
    //void OnMouse(wxMouseEvent& event);
    //void OnLeftDown(wxMouseEvent& event);

    

private:
  //wxListBox*    mlistBox;
  CFileDrogTarget*      mfileTarget;
};




#ifdef __WXWINCE__
#define BOMBS_FONT wxFont(12, wxSWISS, wxNORMAL, wxNORMAL)
#else
#define BOMBS_FONT wxFont(14, wxROMAN, wxNORMAL, wxNORMAL)
#endif

//////////////////////////////////////////////////////////////////////////
class CFileDrogTarget : public wxFileDropTarget
{
public:
  CFileDrogTarget() {}

  virtual bool OnDropFiles(wxCoord x, wxCoord y,
    const wxArrayString& filenames);
 
private:
  wxListBox *m_owner;
};

//////////////////////////////////////////////////////////////////////////
